<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>服务{$tit} - 我的管理中心</title>
{include file="head"}
<link href="/static/thinkct/css/basic.css?v=1" rel="stylesheet" type="text/css" /><script language="javascript" src="/static/thinkct/js/jquery.m.js"></script><script language="javascript" src="/static/thinkct/js/layui/layui.js"></script><script language="javascript" src="/static/thinkct/js/common.js?v=1"></script><script language="javascript" src="/static/thinkct/js/member.js?v=1"></script><link href="/static/thinkct/css/member.css?v=1" rel="stylesheet" type="text/css" /><link href="/static/thinkct/js/layui/css/layui.css" rel="stylesheet" type="text/css" /><script language="javascript" src="/static/thinkct/js/plupload.js"></script><script language="javascript" src="/static/thinkct/js/upload.js"></script><script language="javascript" src="/static/thinkct/editor/js/wangEditor.min.js"></script><link href="/static/thinkct/editor/css/wangEditor.min.css" rel="stylesheet" type="text/css" /></head>
<body>
<!--头部-->
{include file="uhead"}

<!--头部-->
<div class="umain">
{include file="uleft"}  
<div class="uright">
<div class="mwz">
<li class="cur">服务发布</li>
{if(state('serve') == 0)}<li class="prompt r red">您当前发布信息，需要人工审核通过后才能展示！<a onclick="noauidt('serve','');" style="color: #056dae;" data="state">如何免审?</a></li>{/if}</div>
<form class="layui-form layui-font14"  name="serve" action="" method="post" enctype="multipart/form-data">
<div class="layui-form-item">
	<label class="layui-form-label"><span class="red">*</span> 服务类型</label> 
	<div class="layui-input-inline"> 	
		<!--div class="witkey_selection_box">
			<div class="witkey_selection_selected"> 
				<input type="text" placeholder="请选择.." lay-verify="required" value="" readonly="" class="layui-input" /> 
				<input name="witkey[0]" class="value_0" type="hidden" value="" />
				<input name="witkey[1]" class="value_1" type="hidden" value="" />
				<div class="witkey_selection_edge"></div> 
			</div> 
			<div class="witkey_selection_lay" style="width:552px"> 
				<div class="witkey_selection_tabs"> 
					<a data-value="2">技术开发</a><a data-value="14">美工设计</a><a data-value="18">网络业务</a><a data-value="24">企业代办</a><a data-value="31">营销优化</a><a data-value="38">文案策划</a>
				</div> 
				<div class="witkey_selection_body">
					<div class="witkey_selection_tag"><div class="item" data-value="3"><div class="l"><i></i><cite>UI设计</cite></div><span>网站前端UI设计、移动应用UI设计</span></div><div class="item" data-value="4"><div class="l"><i></i><cite>网站开发</cite></div><span>电脑端网站开发、定制，仿站等业务</span></div><div class="item" data-value="5"><div class="l"><i></i><cite>移动端开发</cite></div><span>小程序开发、APP开发、APP封装打包、H5开发</span></div><div class="item" data-value="6"><div class="l"><i></i><cite>软件开发</cite></div><span>桌面软件开发、系统软件开发、脚本制作、插件开发</span></div><div class="item" data-value="7"><div class="l"><i></i><cite>游戏开发</cite></div><span>手游开发、端游开发、页游开发、游戏UI设计</span></div><div class="item" data-value="8"><div class="l"><i></i><cite>二次开发</cite></div><span>在已有程序、软件基础上进行二次开发，增加/删减功能</span></div><div class="item" data-value="9"><div class="l"><i></i><cite>配置维护</cite></div><span>环境配置、安全维护、安全运维等与服务器相关业务</span></div><div class="item" data-value="10"><div class="l"><i></i><cite>数据采集</cite></div><span>数据采集业务</span></div><div class="item" data-value="11"><div class="l"><i></i><cite>安装调试</cite></div><span>安装调试、软件测试、网站测试</span></div><div class="item" data-value="12"><div class="l"><i></i><cite>修复恢复</cite></div><span>修复BUG、丢失数据恢复</span></div><div class="item" data-value="13"><div class="l"><i></i><cite>技术服务</cite></div><span>域名、云服务、IT解决方案</span></div></div><div class="witkey_selection_tag"><div class="item" data-value="15"><div class="l"><i></i><cite>平面设计</cite></div><span>logo设计、商标设计、PS抠图、电商设计</span></div><div class="item" data-value="16"><div class="l"><i></i><cite>动漫动画</cite></div><span>动画/动漫设计、FLASH制作</span></div><div class="item" data-value="17"><div class="l"><i></i><cite>影视视频</cite></div><span>视频制作、特效处理、影视广告、短视频剪辑配音</span></div></div><div class="witkey_selection_tag"><div class="item" data-value="19"><div class="l"><i></i><cite>自媒体</cite></div><span>微信公众号等自媒体代注册</span></div><div class="item" data-value="20"><div class="l"><i></i><cite>支付业务</cite></div><span>微信支付商户、支付宝商户等支付业务代签约</span></div><div class="item" data-value="21"><div class="l"><i></i><cite>苹果商城</cite></div><span>苹果IOS代签名、应用商城代上架</span></div><div class="item" data-value="22"><div class="l"><i></i><cite>安全认证</cite></div><span>SSL证书、网络安全认证</span></div><div class="item" data-value="23"><div class="l"><i></i><cite>其他业务</cite></div><span>不在上述范围的网络相关业务可选择此分类</span></div></div><div class="witkey_selection_tag"><div class="item" data-value="25"><div class="l"><i></i><cite>商标业务</cite></div><span>商标的注册/转让/购买/复审/注销/变更/续展</span></div><div class="item" data-value="26"><div class="l"><i></i><cite>版权业务</cite></div><span>软件著作权、作品著作权、版权的登记/变更/转让/补证</span></div><div class="item" data-value="27"><div class="l"><i></i><cite>专利业务</cite></div><span>发明专利、实用新型专利、外观设计专利</span></div><div class="item" data-value="28"><div class="l"><i></i><cite>工商财税</cite></div><span>工商登记、工商变更、代理记账、税收筹划</span></div><div class="item" data-value="29"><div class="l"><i></i><cite>法律服务</cite></div><span>法律咨询、法律文书、聘请律师、企业法务、风险评估</span></div><div class="item" data-value="30"><div class="l"><i></i><cite>资质认证</cite></div><span>双软评估、ISO认证、资质认证、高企认定、项目申报</span></div></div><div class="witkey_selection_tag"><div class="item" data-value="32"><div class="l"><i></i><cite>SEO优化</cite></div><span>网站优化、百度/谷歌/360等搜索引擎关键词优化</span></div><div class="item" data-value="33"><div class="l"><i></i><cite>品牌营销</cite></div><span>视频推广、电商代运营、新闻媒体发稿</span></div><div class="item" data-value="34"><div class="l"><i></i><cite>网络营销</cite></div><span>短视频推广、网络推广、百度推广、网站推广、QQ推广、发帖推广</span></div><div class="item" data-value="35"><div class="l"><i></i><cite>微信营销</cite></div><span>微信公众号/小程序/微店的代运营/转发/推广/活动</span></div><div class="item" data-value="36"><div class="l"><i></i><cite>微博营销</cite></div><span>微博代运营、微博话题榜、微博营销全案、微博推广</span></div><div class="item" data-value="37"><div class="l"><i></i><cite>媒体营销</cite></div><span>软文推广、自媒体/新媒体/传统媒体广告，信息流/朋友圈广告</span></div></div><div class="witkey_selection_tag"><div class="item" data-value="39"><div class="l"><i></i><cite>文案写作</cite></div><span>商业计划书、宣传文案、产品文案、百科/问答撰写</span></div><div class="item" data-value="40"><div class="l"><i></i><cite>营销策划</cite></div><span>活动策划、宣传策划、品牌策划、广告策划</span></div></div>
				</div>
			</div> 
		</div-->
	<select lay-verify="required"   name="menus[]" > <option value="">请选择..</option>{foreach($menus['type'] as $v)}<option value='{$v.id}' data-tips='{$v.tips}' {if($v.id == $data.menus)}selected{/if}>{$v.name2}</option>{/foreach}</select>		
	</div> 
</div> 
<div class="layui-form-item">
    <label class="layui-form-label"><span class="red">*</span> 标题</label>
      <div class="layui-input-inline"  style='width:400px;' >
	<input  name="tit" class="layui-input" value="{$data.tit}" maxlength="80"  d_len='40' lay-verify="tit"  style='width:400px;'  size="50" type="text" placeholder="不得含黄赌毒等违禁词,否则一律封号"/>
    </div>
	<div class="layui-form-mid layui-word-aux">您还可以输入 <b id="check_count">40</b> 个字</div>
	</div>

<div class="layui-form-item">
    <label class="layui-form-label">简述</label>
	 <div class='layui-input-inline' style='width:400px;'>
		<textarea name="cdes" style='height:50px;' maxlength="100" class="layui-textarea checkLen" d_len='100'>{$data.cdes}</textarea> </div>
		<div class="layui-form-mid layui-word-aux">您还可以输入 <b id="check_count">100</b> 个字</div>
		</div>
<div class="layui-form-item">
    <label class="layui-form-label">详细介绍</label>
    <div class="layui-input-block form-textarea-box" style='overflow:visible;'><textarea name="txt" id='content' class="checkLen" >{$data.txt}</textarea></div>
</div>

<div class="layui-form-item">
    <label class="layui-form-label">介绍模板</label>
 <div class="layui-input-inline" style='width:100px'> <select name="temid" >
  <option value="">未选择..</option>
    <option value="">未选择..</option>

  </select></div>
 <div class="layui-input-inline" style='width:140px'><input name="retem" class="gx" type="checkbox" value="9" title="记住我的选择" /> </div>
 <div class="layui-form-mid layui-word-aux">多个服务描述有相同内容时，使用模板便于统一添加修改。 <a href="/member/lists/tem" target="_blank">管理<a> <a href="/member/lists/tem" target="_blank">新增</a> </div>   
</div>


<div class="layui-form-item">
    <label class="layui-form-label"><span class="red">*</span> 缩略图</label>
    <div class="layui-input-block">
	<div class="layui-box layui-upload-button"><input type="file" name="file" {if($action == 'add')}lay-verify="required"{/if} id="picinp" class="layui-upload-file" accept="image/png,image/jpeg,image/gif" onchange="checkfile(this,'pic')"><span class="layui-upload-icon"><i class="layui-icon"></i>选择图片</span></div> <div class="layui-inline"> <div class="layui-form-mid layui-word-aux " style="color:red"></div></div>
	<br>
<div class="div_preview" pixel_data='0' size_data="1048576"  style='width:250px;height:250px;' id="pic">
{if($action == 'add')}<div class="preview_tips"><span><strong	 style='font-size:15px;'>缩略图(<font style='color:red;'>必传</font>)</strong> <p>一张清晰美观的缩略图会吸引买家的点击欲</p><p>尺寸250x250，格式jpg/gif/png，大小限1M</p></span></div>
<img src="">{else}<img src="{:get_tp($data.bh)}">{/if}</div>
</div>
</div>
<div class="layui-form-item">
    <label class="layui-form-label"> 介绍大图</label>
    <div class="layui-input-block">
	<div class="upload-box">
		<div class="container">
			<div class="statusBar">
			<div class="info"><b>1.</b>限传9张大图（含已传），尺寸不限，单图大小限3M，格式 jpg/gif/png<br><b>2.</b>大图可插入上方（详细介绍），未插入将按排序依次显示在详细介绍之后</div>
			<div class="btns">
				<a id="browse">选择图片</a>
			</div>
			</div>
			<table class="fu_list"  id='pluing' style="display:none;" >
				<thead>
					<tr>
						<td width="65%">待传队列（<u>0</u>） <font color="#888">提示：待传队列为点击最后的“确认提交”时开始上传</font></td>
						<td width="21%" align="center"></td>
						<td width="14%" align="center">操作</td>
					</tr>
				</thead>
				<tbody id="FileListing">
				</tbody>
			</table>
				<div class="filelist">
				{volist name="filelist" id="v"}
					<div>
					<p class='imgWrap'><img src='{$v.url}'><span class='icon'>{$i}</span></p><p class='file-panel' style='height: 0px; overflow: hidden;'>
					<a class='fleft' title='前移（调整排序）'><span></span><i></i></a>
					<a class='fdel' id='{$v.tmp_name}' title='删除（不可恢复）'><span></span><i></i></a>
					<a class='fright' title='后移（调整排序）'><span></span><i></i></a></p>
					</div>			
				{/volist}
				</div>
		</div>
</div>
</div>
</div>


<div class="layui-form-item">
    <label class="layui-form-label">是否计件</label>
	<div class="layui-input-block"><input name="piece" type="radio" value="0" {if $data.piece!=1}checked{/if} title="否(一单一件)"  /><input name="piece" type="radio" value="1" {if $data.piece==1}checked{/if} title="是(允许一单购买多件)" />
	</div>
</div>


<div class="layui-form-item">
<label class="layui-form-label"><span class="red">*</span> 服务价格</label>
<div class="layui-input-block delivery">
	<strong class='change {if $data.tmoney!=1}cur{/if}'><input name="tmoney" type="radio" lay-filter='change' value="0" {if $data.tmoney!=1}checked{/if} title="固定价格"/></strong> 
	<strong class='change {if $data.tmoney==1}cur{/if}'><input name="tmoney" type="radio" value="1" lay-filter='change' {if $data.tmoney==1}checked{/if} title="动态价格" /></strong>
	<div class="change_box">
		<div class="box" {if $data.tmoney==1}style='display:none;margin-top:-5px'{/if}>
			<div class="layui-form-item">
				<label class="layui-form-label">一口价</label>
				<div class='layui-input-inline'><input class="layui-input" name="money" value="{$data.money}" maxlength="8" size="10" type="text"/></div>
				<div class="layui-form-mid layui-word-aux">元 (不低于10元)</div>
			</div>
			<div class="layui-form-item"></div>
		</div>
		<div class="box" {if $data.tmoney!=1}style='display:none;margin-top:-5px'{/if}>
			<table class="tablelist moneylist" style=" border-left:none;border-right:none; ">
				<thead>    	
					<tr>
					<td width="50%" style='border:0'>价格说明</td>
					<td width="30%" style='border:0'>价格（元）</td>
					<td width="20%" style='border:0'>操作</td>
					</tr>
				</thead>
				<tbody>
				{foreach $moneydata as $m}
					<tr>
					<td><input name="moneydes[]" class="layui-input checkLen" d_len="8" maxlength="16" value="{$m.des}" type="text"/></td>
					<td><input name="allmoney[]" class="layui-input s o_number checkLen" maxlength="8" d_len='4' value="{$m.all}" type="text"/></td>
					<td><a class="mb-action-a" id="down" title="排序下降" ></a><a class="mb-action-a" id="del" title="删除"></a><a class="mb-action-a" id="up" title="排序上升"></a></td>
					</tr>
				{/foreach}
				{if !$moneydata}
					<tr>
					<td><input name="moneydes[]" class="layui-input checkLen" d_len="8" maxlength="16" value="" type="text"/></td>
					<td><input name="allmoney[]" class="layui-input s o_number checkLen" maxlength="8" d_len='4' value="" type="text"/></td>
					<td><a class="mb-action-a" id="down" title="排序下降" ></a><a class="mb-action-a" id="del" title="删除"></a><a class="mb-action-a" id="up" title="排序上升"></a></td>
					</tr>				
				{/if}
				</tbody>
				<tfoot>
					<tr>
					<td colspan=4><a class='addmoney'><i class='iconfont'>&#xe64a;</i>添加价格</a></td>
					</tr>
				</tfoot>
			</table>
			<div class='notes'>
				<li> <h3> 动态价格说明：</h3></li>
				<li><b>1.</b>【动态价格】最多可设置5条，至少需要设置1条；</li>
				<li><b>2.</b>【价格说明】不允许出现重复值，【价格】不低于10元；</li>
				<li><b>3.</b>【价格排序】为当前设置排序，可在操作处上下调整排序。</li>
			</div>
		</div>
	</div>
	<div class="layui-inline">
		<div class="layui-form-mid layui-word-aux " style="color:red"></div>
	</div>
</div>
</div>

<div class="layui-form-item">
    <label class="layui-form-label">展示方式</label>
    <div class="layui-input-block delivery">
		<strong class='change cur'><input name="show" lay-filter='change' type="radio" value="1" data=0 checked title='常规展示' /></strong> 
					 <strong class='change'><input name="show" lay-filter='change' type="radio" value="2" data=1 title='店铺展示' /></strong> 
					 <strong class='change'><input name="show" type="radio" value="3" lay-filter='change' data=2 title='私密展示' /></strong>		<div class="change_box"  style="padding:0;border-top:0">
			<div class="box" >
				<div class="notes">
					<li><h3 style='font-weight:normal;width:100%;line-height:26px;'>{:sysconf('site_name')}服务列表、店铺展示，获得{:sysconf('site_name')}人气带来的销量！</h3></li>
				</div>
			</div>
			<div class="box" style='display:none;'>
				<div class="notes">
					<li><h3 style='font-weight:normal;width:100%;line-height:26px;'>不在{:sysconf('site_name')}服务列表展示，仅在店铺展示，适合外部导流式销售！</h3></li>
				</div>
			</div>
			<div class="box" style='display:none;'>
				<div class="notes">
					<li><h3 style='font-weight:normal;width:100%;line-height:26px;'>不在{:sysconf('site_name')}服务列表、店铺展示，仅能直接打开，适合面向特定客户销售！</h3></li>
				</div>
			</div>
		</div>
	</div>
</div>



<div class="layui-form-item" style='padding-bottom:15px;'>
    <label class="layui-form-label"></label>
    <div class="layui-input-block"><input type="submit" class="layui-btn" lay-submit=""  value="确认提交" /></div>
</div>
<div class='notes'>
<li><h3>发布规则及声明：</h3></li>
<li><b>1.</b>禁止发<span>博彩</span>、<span>SS彩</span>、<span>棋牌</span>等黄赌毒信息，发现一律删除封号；严重者将IP、手机等信息提交网监部门处理。</li>
<li><b>2.</b><span>缩略图</span>一定要<span>清晰美观</span>及与实际服务<span>相匹配</span>，缩略图乱传或模糊不清一律予以<span>停售</span>，多次出现封号处理；</li>
<li><b>3.</b>禁止重复发布<span>相同缩略图</span>或<span>相同标题</span>的商品，否则同上；</li>
<li><b>4.</b>发布信息与实际<span>不一致</span>，产生交易纠纷按<span>货不对版</span>予以退款处理；</li>
<li><b>5.</b>禁止<span>额外乱收费</span>，如果必须额外收费，需交易前告知买家及在描述中<span>显著标明</span>，否则同上。</li>
<li><h3>其他事项及声明：</h3></li>
<li style='color:red'><b>1.</b>请保持<span>QQ</span>或<span>联系电话</span>通畅，否则同上；（有买家申诉时，{:sysconf('site_name')}会通过QQ及认证电话联系您协调处理）</li>
<li style='color:red'><b>2.</b>严禁在任何情况下<span>辱骂、人身攻击买家</span>，否则同上；（若买家辱骂、人身攻击您，可保留凭证，联系{:sysconf('site_name')}介入处理）</li>
<li><b>3.</b>不要轻易在QQ上或手机上答应买家<span>做不到的承诺</span>，对应的客服通讯聊天记录也是<span>评判责任的证据</span>；</li>
<li><h3>总结：</h3></li>
<li>发布信息内容等同<span>交易合同</span>，售出时会自动对发布信息快照存档；请确保<span>描述真实</span>，<span>质量可靠</span>，<span>服务到位</span>，从而无懈可击的应对各种恶意的退款，否则一旦产生交易纠纷，不仅<span>钱赚不到</span>且<span>浪费彼此时间</span>和<span>有损您的信誉</span>。</li>
	 </div>
  <input type="hidden" name="bh" value="{$bh}">
  <input type="hidden" name="action" value="{$action}">
  <input type="hidden" name="passkey" value="{:passkey()}">
  <input type="hidden" name="psort" id="psort" >
  </form>
 </div>
</div>
{include file="bottom"}<script type="text/javascript">
function banKey(text){if(!text)return[];var str='{$bankey}',strs=decodeURIComponent(str).split(','),list=[];strs.forEach(v=>{var v=v.toLowerCase();if(text.toLowerCase().indexOf(v)>-1&&$.inArray(v,list)<0)list.push(v)});return list}
layer_psort=function(){psort='';$(".filelist div").each(function(i){ $(this).find('.icon').html(i+1);psort+=$(this).find('.fdel').attr('id')+","});$('#psort').val(psort)};$('.mb-action-a').live('click',function(){var action=$(this).attr('id');if(action=='del'){if($('.moneylist tbody tr').length<2){layer.alert("至少需要保留一个价格！",{icon:0});return false}$(this).closest('tr').remove()}else{if($('.moneylist tbody tr').length<2){layer.alert("亲，就我1个，您想移哪去？",{icon:0});return false}var $this=$(this).closest('tr');if(action=='up'){if($this.prev().length>0){ $this.prev().before($this)}else{ $(".moneylist tbody tr:last").after($this)}}else{if($this.next().length>0){ $this.next().after($this)}else{ $(".moneylist tbody tr:first").before($this)}}}});$('.filelist .fleft,.fright').live('click',function(){var $v=0;if($('.filelist div').length<2){layer.alert("亲，就我1个，您想移哪去？",{icon:0});return false}$(".filelist .file-panel").css({"height":"0"});$this=$(this).closest('div');$athis=$this.prev();$bthis=$athis;if($(this).attr('class')=="fright"){ $athis=$this;$this=$this.next();$bthis=$this}if($bthis.length<=0){ $this=$(".filelist div:first");$athis=$(".filelist div:last");$v=1}$this.animate({top:$athis.position().top-$this.position().top,left:$athis.position().left-$this.position().left},"300",function(){if($v==1){ $athis.after($this);if($('.filelist div').length>2){ $(".filelist div:first").before($athis)}}else{ $athis.before($this)}});$athis.animate({top:$this.position().top-$athis.position().top,left:$this.position().left-$athis.position().left},"300",function(){ $('.filelist div').css({"left":"0","top":"0"});layer_psort()})});$(".filelist div").live('mouseenter',function(){ $(this).find('.file-panel').stop().animate({height:30})});$(".filelist div").live('mouseleave',function(){ $(this).find('.file-panel').stop().animate({height:0})});$('.file-panel a').live({mouseenter:function(){ $(this).find("span").addClass("cur")},mouseleave:function(){ $(this).find("span").removeClass("cur")}});var maxnum=9,stop=0;$(".filelist .fdel").live('click',function(){var $this=$(this);$.ajax({type:"POST",url:"/upload/",async:true,data:"action=del&p={$bh}&object="+$this.attr('id')+"&type=serve",success:function(is){var arr=is.split('|');var datas=$.trim(arr[0]);if(datas==0){layer.login('再删除',$this.attr('id'))}else if(datas==1){ $this.closest('div').remove();layer.psort();if($('.filelist div').length<=0){ $('.filelist').hide();return false}}else{layer.alert(arr[1],{icon:datas})}},error:function(){layer.msg('网络异常，请重试');return false}})});var uploader=new plupload.Uploader({runtimes:'html5,flash,silverlight,html4',browse_button:'browse',url:"/upload/",resize:{width:900},max_retries:1,flash_swf_url:'/Check/Moxie.swf',silverlight_xap_url:'/Check/Moxie.xap',filters:{prevent_duplicates:true,max_file_size:'3mb',mime_types:[{title:"图片文件",extensions:"jpg,png,gif"}]},multi_selection:true});uploader.init();uploader.bind('FilesAdded',function(uploader,files){var newnum=maxnum-parseInt($('.filelist div').length+$('#FileListing tr').length),flen=files.length,fhtml,vhtml='',ehtml='';if(flen>newnum){layer.alert("<strong>演示图最多能上传"+maxnum+"张（含已传）</strong>",{icon:2});uploader.splice(newnum,10000)}for(var i=0;i<=flen;i++){if(i==flen){if(ehtml!=''){layer.alert("<strong>以下图片已传过了，不要重复上传</strong><br>"+ehtml,{icon:0})}if(uploader.files.length>0){ $('#pluing').show();$(fhtml).appendTo('#FileListing');$('#pluing u').html(uploader.files.length);}return false}if(i>=newnum){continue}var fname=files[i].name,fid=files[i].id,fSuffix=fname.substr(fname.indexOf(".")),f5name=$.md5(files[i].size+files[i].lastModifiedDate+files[i].type)+fSuffix;vhtml='<tr id="file-'+fid+'"><td>'+fname+'</td><td></td><td align="center"><a onclick=deling("'+fid+'")>取消</a></td></tr>';$(".filelist .fdel").each(function(){if($(this).attr('id')==f5name){vhtml='';uploader.removeFile(fid);ehtml+="【"+fname+"】<br>";return false}});fhtml=fhtml+vhtml}});uploader.bind("BeforeUpload",function(uploader,file){uploader.setOption("multipart_params",{lastDate:file.lastModifiedDate,osize:file.size,number:'{$bh}',action:'add',type:'serve',maxnum:maxnum})});uploader.bind("UploadProgress",function(uploader,file){ $('#progress-in').width(uploader.total.percent+"%");$("#file-"+file.id+" td:eq(2)").html("<b>"+file.percent+"%</b>")});uploader.bind("FileUploaded",function(uploader,file,info){ $('#progress-uploaded').html(uploader.total.uploaded);var data=$.parseJSON(info.response);if(data.state!=0){ $fh=$('#progress ul');$fh.show();$('<p><span>'+file.name+'</span><br><b>'+data.state+' >> 继续执行…</b></p>').appendTo($fh);layer.autoA();stop=4000}});uploader.bind("UploadComplete",function(uploader){setTimeout("$(\"input[type=submit]\").click()",stop)});uploader.bind("Error",function(uploader,err){if(err.message=='HTTP Error.'){fid=err.file.id;$("#file-"+fid+" td:eq(1)").html("<font color=red>系统出错，代码"+err.serve+"</font>");$("#file-"+fid+" td:eq(2)").html('<a onclick=deling("'+fid+'")>删除</a>');return false}layer.alert("<strong>"+err.message+"</strong>",5)});layui.use('form',function(){var form=layui.form();form.on('radio(change)',function(data){var $this=$(data.elem).closest("strong"),v=typeof($(data.elem).attr("data"))=="undefined"?data.value:$(data.elem).attr("data");$this.addClass("cur").siblings('strong').removeClass('cur');$this.nextAll(".change_box").children('.box').eq(v).show().siblings('.box').hide()});form.on('submit',function(data){var isOK=true,BanKeyTrue=false;if($(":radio[name='tmoney']:checked").val()==1){var R={};$(".moneylist tbody input").each(function(){var $type=$(this).attr("name"),$val=$.trim($(this).val());if($type=="moneydes[]"){if($val.length<1){isOK=false;layer.tips('【价格说明】不能为空！',$(this),{tips:1});$(this).focus();return false}else if((R[$val])){isOK=false;layer.tips('【价格说明】不允许出现重复值！',$(this),{tips:1});$(this).focus();return false}R[$val]=true}else{if($val<10||$val>10000000){isOK=false;layer.tips('【价格】允许范围 10~10000000元',$(this),{tips:1});$(this).focus();return false}}})}else{ $val=$.trim($("input[name=money]").val());if($val<10||$val>10000000){isOK=false;layer.tips('【一口价】允许范围 10~10000000元',$("input[name=money]"),{tips:1});$("input[name=money]").focus();return false}}$('.demandtips').remove();editor.$txt.html(editor.$txt.html().replace(/<\/?(cite)[^>]*>/gi,''));$.each(['tit','cdes','txt','azbz'],function(key,name){var input=$('[name='+name+']'),Res=banKey(input.val());if(Res.length>0){var div=input.closest(".layui-form-item"),tips='【'+div.find(".layui-form-label").html().replace(/[^0-9\u4e00-\u9fa5]/g,'')+'】含有违禁关键词：<font class="red">'+Res.join('、')+'</font>',html='<div class="demandtips" style="margin:15px 20px 0 110px;padding:8px 10px 5px 10px"><a class="close" onclick="$(this).parent().fadeOut(\'slow\');" title="关闭提示">X</a><p class="title"><i class="icons" style="margin-top:-12px"></i><b style="font-size:14px;">'+tips+'</b></p></div>';div.prev().attr('class')=='demandtips'?div.prev().find('b').html(tips):div.before(html);if(name=='txt'){Res.forEach(v=>{editor.$txt.html(editor.$txt.html().replace(new RegExp(v,"gm"),'<cite style="background:red;color:#fff;">'+v.trim()+'</cite>'))})}isOK=false;BanKeyTrue=true}});if(BanKeyTrue)scTop(".demandtips:eq(0)",15);if(!isOK){return false}if(uploader.total.queued>0){progress();$('#progress-upload').html(uploader.files.length);uploader.start();return false}else{progress(true);return true}})});$(".moneylist .addmoney").click(function(){var Num=$(".moneylist tbody tr").length;if($(".moneylist tbody tr").length<5){ $(".moneylist tbody").append('<tr><td><input name="moneydes[]" class="layui-input checkLen" d_len="8" maxlength="16" value="" type="text"/></td><td><input name="allmoney[]" class="layui-input s o_number checkLen" maxlength="8" d_len="4" value="" type="text"/></td><td><a class="mb-action-a" id="down" title="排序下降" ></a><a class="mb-action-a" id="del" title="删除"></a><a class="mb-action-a" id="up" title="排序上升"></a></td></tr>')}else{layer.alert("最多只能设置5个动态价格！",{icon:2});return false}});var editor=new wangEditor('content');editor.onchange=function(){editor.$txt.find("img").remove()};editor.create();
</script>
</body>
</html>